package com.daou.smartpush.common.util;

import java.util.Locale;

import org.springframework.context.support.MessageSourceAccessor;

public class Message {
	/**
     * MessageSourceAccessor
     */
    private static MessageSourceAccessor msAcc = null;

    public void setMessageSourceAccessor(MessageSourceAccessor msAcc) {
        Message.msAcc = msAcc;
    }

  
    public static String getMessage(String key) {
        return msAcc.getMessage(key, Locale.getDefault());
    }

    public static String getMessage(String key, Object[] objs) {
        return msAcc.getMessage(key, objs, Locale.getDefault());
    }
}
